import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:layout-dashboard',
      order: -1,
      title: '管控中心',
      tabGroup: 'big'
    },
    name: 'Dashboard',
    path: '/dashboard',
    children: [
      {
        name: 'Situationscreen',
        path: '/situationscreen',
        component: () => import('#/views/dashboard/situationscreen/index.vue'),
        meta: {
          // affixTab: true,
          icon: 'carbon:workspace',
          title: '态势大屏',
          tabGroup: 'big'
        },
      },
      {
        name: 'Flightdata',
        path: '/flightdata',
        component: () => import('#/views/dashboard/flightdata/index.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: '飞行数据',
          tabGroup: 'big'
        },
      },
      {
        name: 'Dronemonitoring',
        path: '/dronemonitoring',
        component: () => import('#/views/dashboard/dronemonitoring/index.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: '无人机监控',
          tabGroup: 'big'
        },
      },
      {
        name: 'DronemonitoringDetail',
        path: '/dronemonitoringDetail',
        component: () =>
          import('#/views/dashboard/dronemonitoringDetail/index.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: '无人机监控详情',
          hideInMenu: true,
          tabGroup: 'big'
        },
      },
      {
        name: 'Dronemonitoringtakeover',
        path: '/dronemonitoringtakeover',
        component: () =>
          import('#/views/dashboard/dronemonitoringtakeover/index.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: '无人机监控详情任务',
          hideInMenu: true,
          tabGroup: 'big'
        },
      },
      {
        name: 'Airportdeployment',
        path: '/airportdeployment',
        component: () =>
          import('#/views/dashboard/airportdeployment/index.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: '机场部署',
          tabGroup: 'big'
        },
      },
      {
        name: 'AirportdeploymentDetail',
        path: '/airportdeploymentDetail',
        component: () =>
          import('#/views/dashboard/airportdeploymentDetail/index.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: '机场部署详情',
          hideInMenu: true,
          tabGroup: 'big'
        },
      },
      {
        name: 'AirportTakeover',
        path: '/airportTakeover',
        component: () => import('#/views/dashboard/airportTakeover/index.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: '一键接管',
          tabGroup: 'big'
        },
      },
      {
        name: 'Taskscheduling',
        path: '/taskscheduling',
        component: () => import('#/views/dashboard/taskscheduling/index.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: '任务调度',
          tabGroup: 'big'
        },
      },
      {
        name: 'TaskschedulingDetail',
        path: '/taskschedulingDetail',
        component: () =>
          import('#/views/dashboard/taskschedulingDetail/index.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: '任务调度详情',
          hideInMenu: true,
          tabGroup: 'big'
        },
      },
    ],
  },
];

export default routes;
